<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:53:"D:\WWW\epes/application/admin\view\index\welcome.html";i:1515988606;s:53:"D:\WWW\epes/application/admin\view\public\header.html";i:1515988606;s:53:"D:\WWW\epes/application/admin\view\public\footer.html";i:1515988606;}*/ ?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title><?php echo cache('site_name'); ?>后台管理系统</title>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="/public/static/admin/favicon.ico">
    <link href="/public/static/admin/assets/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/public/static/admin/assets/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/public/static/admin/assets/css/animate.css" rel="stylesheet">
    <link href="/public/static/admin/assets/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="/public/static/admin/assets/js/plugins/ztree/css/metroStyle/metroStyle.css" rel="stylesheet">
    <link href="/public/static/admin/assets/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/public/static/admin/assets/js/plugins/bootstrap-fileinput/css/fileinput.min.css" rel="stylesheet">
    <link href="/public/static/admin/assets/css/plugins/codemirror/codemirror.css" rel="stylesheet">
    <link href="/public/static/admin/assets/css/plugins/codemirror/ambiance.css" rel="stylesheet">
    <link href="/public/static/admin/assets/js/plugins/bootstrap-table/src/bootstrap-table.css" rel="stylesheet">
    <link href="/public/static/admin/assets/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <link href="/public/static/admin/assets/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
</head>


<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row animated fadeInRight">
        <div class="col-sm-4">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>个人资料</h5>
                </div>
                <div>
                    <div class="ibox-content no-padding border-left-right">
                        <img alt="image" class="img-responsive" src="/public/static/admin/assets/img/profile_big.jpg">
                    </div>
                    <div class="ibox-content profile-content">
                        <h4><strong>Kumer</strong></h4>
                        <p><i class="fa fa-map-marker"></i> 福建省龙岩市新罗区商务版块</p>
                        <h5>
                            关于我
                        </h5>
                        <p>
                            会点前端技术，div+css啊，jQuery，Bootstrap之类的，不是很精；主要研究后台开发（JAVA/PHP）；热爱生活，热爱互联网，热爱新技术，在不断的寻求新的突破。
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>最新动态</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="collapse-link" href="javascript:location.replace(location.href);">
                            <i class="glyphicon glyphicon-refresh"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div>
                        <div class="feed-activity-list" id="logDiv">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>更新日志</h5>
                </div>
                <div class="ibox-content no-padding">
                    <div class="panel-body">
                        <div class="panel-group" id="version">
                            <?php foreach($vers as $vo): ?>
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h5 class="panel-title">
                                        <a data-toggle="collapse" data-parent="#version" href="#v<?php echo $vo['id']; ?>"><?php echo $vo['ver']; ?></a>
                                        <code class="pull-right"><?php echo date("Y.m.d",strtotime($vo['ct'] )); ?></code>
                                    </h5>
                                </div>
                                <div id="v<?php echo $vo['id']; ?>"
                                     class="panel-collapse collapse <?php if($vo['id']==$vid): ?>in<?php endif; ?>">
                                    <div class="panel-body">
                                        <?php if($vo['about']!=''): ?>
                                        <div class="alert alert-warning"><?php echo $vo['about']; ?></div>
                                        <?php endif; ?>
                                        <?php echo $vo['content']; ?>
                                    </div>
                                </div>
                            </div>
                            <?php endforeach; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 全局js -->
<script src="/public/static/admin/assets/js/jquery.min.js?v=2.1.4"></script>
<script src="/public/static/admin/assets/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/public/static/admin/assets/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/public/static/admin/assets/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

<!-- 自定义js -->
<script src="/public/static/admin/assets/js/hplus.js?v=4.1.0"></script>
<script src="/public/static/admin/assets/js/contabs.js"></script>
<script src="/public/static/admin/loa/js/table.js"></script>

<!-- 第三方插件 -->
<script src="/public/static/admin/assets/js/plugins/pace/pace.min.js"></script>
<script src="/public/static/admin/assets/js/plugins/iCheck/icheck.min.js"></script>
<script src="/public/static/admin/assets/js/plugins/bootstrap-fileinput/js/fileinput.js"></script>
<script src="/public/static/admin/assets/js/plugins/bootstrap-fileinput/js/fileinput_locale_zh.js"></script>
<script src="/public/static/admin/assets/js/plugins/treeview/bootstrap-treeview.js"></script>
<script src="/public/static/admin/assets/js/plugins/ueditor/ueditor.config.js"></script>
<script src="/public/static/admin/assets/js/plugins/ueditor/ueditor.all.min.js"></script>
<script src="/public/static/admin/assets/js/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<script src="/public/static/admin/assets/js/plugins/ztree/js/jquery.ztree.core.min.js"></script>
<script src="/public/static/admin/assets/js/plugins/ztree/js/jquery.ztree.excheck.min.js"></script>
<script src="/public/static/admin/assets/js/plugins/codemirror/codemirror.js"></script>
<script src="/public/static/admin/assets/js/plugins/codemirror/mode/javascript/javascript.js"></script>
<script src="/public/static/admin/assets/js/plugins/bootstrap-table/src/bootstrap-table.min.js"></script>
<script src="/public/static/admin/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/public/static/admin/assets/js/plugins/bootstrap-table/src/locale/bootstrap-table-zh-CN.min.js"></script></html>
<script src="/public/static/admin/assets/js/plugins/bootstrap-table/src/extensions/export/bootstrap-table-export.js"></script></html>
<script src="/public/static/admin/assets/js/plugins/tableExport.jquery.plugin/tableExport.min.js"></script></html>
<script src="/public/static/admin/assets/js/jquery.serializejson.min.js"></script>
<script src="/public/static/admin/assets/js/plugins/layer/layer.js"></script>
<script src="/public/static/admin/assets/js/plugins/toastr/toastr.min.js"></script>
<script src="/public/static/admin/assets/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="/install/js/ajaxForm.js"></script>
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript">
    $(document).ready(function () {
        //设置加载日志
        loadLogs();
    });

    function loadLogs() {
        $.ajax({
            url: "/admin/sys.sys_log/loadLogs",
            type: 'get',
            dataType: 'json',
            success: function (res) {
                if (res.rc == 0) {
                    packagData(res.data)
                }
            }
        });
    }

    /**
     * 包装数据
     * @param data
     */
    function packagData(data) {
        var len = data.length;
        var str = "";
        for (var i = 0; i < len; i++) {
            str += '<div class="feed-element"><a href="profile.html#" class="pull-left">';
            str += '<img alt="image" class="img-circle" src="' + data[i].head_img + '"></a>';
            str += '<div class="media-body "><strong>' + data[i].user_name + '</strong> ' + data[i].event + '.<br>';
            str += '<small class="text-muted">' + data[i].ct + ' 来自 系统操作</small></div></div>';
        }
        document.getElementById('logDiv').innerHTML = str;
    }
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
